package com.support;

import android.content.Context;
import android.util.Log;
import android.view.Gravity;
import android.widget.Toast;

import com.base.mybaseproject.base.Constant;

public class Utils {
	public static void showToast(Context context, String mesg) {
		Toast toast = Toast.makeText(context, mesg, Toast.LENGTH_LONG);
		toast.setGravity(Gravity.CENTER, 0, 0);
		toast.show();
	}

	public static void d(String tag, String msg) {
		if (Constant.DEBUG)
			Log.d(tag, msg);
	}

	public static void e(String tag, String msg) {
		if (Constant.DEBUG)
			Log.e(tag, msg);
	}
}
